-- lost_light2
-- create by shuzy
-- 令所有怪物无法守护格子

return {
    apply = function(prop, baseValue)
        -- 提升的值
        return prop[3];
    end,

    clear = function(target, prop)
        local grids = DungeonM.getCurrentDungeon();
        for _, grid in pairs(grids) do
            -- 未死亡的怪物格子，刷新一下周围格子的上锁状态
            if grid:isMonster() and not grid.monster:isDead() then
                EventMgr.fire(event.GRID_LOCK_STATE, {["pos"] = grid:getPos(), });
            end
        end
    end,

    record = function(target, prop, path)
        return false;
    end
};
